package com.example.demo;

/**
 * @Author: lz
 * @Date: 2018/8/21 16:25
 * @Version 1.0
 */
//Tomcat tomcatServer = new Tomcat();
//		tomcatServer.setHostname("localhost");
//		tomcatServer.setPort(Integer.valueOf(environment.getProperty("server.port")));
//		Context rootContext = tomcatServer.addContext("", System.getProperty("java.io.tmpdir"));
//		ServletHttpHandlerAdapter servlet = new ServletHttpHandlerAdapter(httpHandler);
//		Tomcat.addServlet(rootContext, "httpHandlerServlet", servlet);
//		rootContext.addServletMapping("/", "httpHandlerServlet");
//		tomcatServer.start();